package Caozuo_gui_fan;

import Bullfighting.Player;

public class BesuperApplication {
	private static Player playerProfile;

	public static void main(String[] args) {
		QingkeConsole.println("you can use the \"HELP\" for command usage.Have fun!");
		
		while(true){
			String cmd = QingkeConsole.askUserInput("cmd> ");
		
			if(cmd.equalsIgnoreCase("exit")){
				doExit();
			}else if(cmd.equalsIgnoreCase("help")){
				doPrintUsage();
			}else if(cmd.equalsIgnoreCase("list")){
				
			}
		}

	}
	public static Player getPlayerProfile(){
		return playerProfile;
	}
	private static void doExit(){
		System.exit(0);
	}
	public Player getCurrentplayer(){
		return playerProfile;
	}
	
	private static void doPrintUsage(){
		QingkeConsole.println("========= I want to be Xue ba commands ======== ");
		QingkeConsole.println("exit   - Exit");
		QingkeConsole.println("help   - Print usage");
		QingkeConsole.println("list   - List the opening question");
		QingkeConsole.println("ask    - Create a question");
		QingkeConsole.println("answer - Answer a question");
	}

}
